package com.tools.web.work.captcha;

import com.tools.common.object.Note;

/**
 * 验证码服务 CaptchaService 的部分抽象实现
 * */
@Note("验证码服务 CaptchaService 的部分抽象实现")
public abstract class AbsCaptchaService implements CaptchaService {

    protected AbsCaptchaService() {}


    @Override
    public CaptchaResult newPng() {
        return CaptchaKit.pngCaptchaResult();
    }

    @Override
    public CaptchaResult newPng(CaptchaBuilder builder) {
        return CaptchaKit.pngCaptchaResult(builder);
    }

    @Override
    public CaptchaResult newGif() {
        return CaptchaKit.gifCaptchaResult();
    }

    @Override
    public CaptchaResult newGif(CaptchaBuilder builder) {
        return CaptchaKit.gifCaptchaResult(builder);
    }

    @Override
    public CaptchaResult newChinese() {
        return CaptchaKit.chineseCaptchaResult();
    }

    @Override
    public CaptchaResult newChinese(CaptchaBuilder builder) {
        return CaptchaKit.chineseCaptchaResult(builder);
    }

    @Override
    public CaptchaResult newChineseGif() {
        return CaptchaKit.chineseGifCaptchaResult();
    }

    @Override
    public CaptchaResult newChineseGif(CaptchaBuilder builder) {
        return CaptchaKit.chineseGifCaptchaResult(builder);
    }

    @Override
    public CaptchaResult newCalc() {
        return CaptchaKit.calcCaptchaResult();
    }

    @Override
    public CaptchaResult newCalc(CaptchaBuilder builder) {
        return CaptchaKit.calcCaptchaResult(builder);
    }

    @Override
    public CaptchaResult newSlide(SlideCaptchaBuilder builder) {
        return CaptchaKit.slideCaptchaResult(builder);
    }

    @Override
    public CaptchaResult newClickSelect(ClickCaptchaBuilder builder) {
        return CaptchaKit.clickSelectCaptchaResult(builder);
    }
}
